\section{Tools.MailHelper类参考}
\label{class_tools_1_1_mail_helper}\index{Tools::MailHelper@{Tools::MailHelper}}


发送邮件  


\subsection*{公有成员}
\begin{DoxyCompactItemize}
\item 
{\bf MailHelper} (string smtpclient, string mailFrom, string username, string pwd, string mailTo, string subject, string body, bool bodyhtml, string youName)
\begin{DoxyCompactList}\small\item\em 构造函数 \item\end{DoxyCompactList}\item 
void {\bf AddMmailCc} (string mailCc)
\begin{DoxyCompactList}\small\item\em 添加抄送邮箱, 可多次调用 \item\end{DoxyCompactList}\item 
void {\bf DoSend} ()
\begin{DoxyCompactList}\small\item\em 发送邮件 \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{属性}
\begin{DoxyCompactItemize}
\item 
string {\bf Subject} = $\backslash$w+([-\/+.]$\backslash$w+)$\ast$$\backslash$w\{2,\}@$\backslash$w+([-\/.]$\backslash$w+)$\ast$$\backslash$.$\backslash$w+([-\/.]$\backslash$w+)$\ast$\char`\"{}\hspace{0.3cm}{\ttfamily  [set]}
\begin{DoxyCompactList}\small\item\em 标题 \item\end{DoxyCompactList}\item 
string {\bf Body}\hspace{0.3cm}{\ttfamily  [set]}
\begin{DoxyCompactList}\small\item\em 正文 \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{详细描述}
发送邮件 

\subsection{构造及析构函数文档}
\index{Tools::MailHelper@{Tools::MailHelper}!MailHelper@{MailHelper}}
\index{MailHelper@{MailHelper}!Tools::MailHelper@{Tools::MailHelper}}
\subsubsection[{MailHelper}]{\setlength{\rightskip}{0pt plus 5cm}Tools.MailHelper.MailHelper (
\begin{DoxyParamCaption}
\item[{string}]{ smtpclient, }
\item[{string}]{ mailFrom, }
\item[{string}]{ username, }
\item[{string}]{ pwd, }
\item[{string}]{ mailTo, }
\item[{string}]{ subject, }
\item[{string}]{ body, }
\item[{bool}]{ bodyhtml, }
\item[{string}]{ youName}
\end{DoxyParamCaption}
)}\label{class_tools_1_1_mail_helper_af41d3ed8c7a352fb4ac483f8226429cd}


构造函数 


\begin{DoxyParams}{参数}
{\em smtpclient} & smtp服务器,格式如\char`\"{}smtp.sina.com\char`\"{}\\
\hline
{\em mailFrom} & 发送方,格式如\char`\"{}mymail@sina.com\char`\"{}\\
\hline
{\em username} & 登入名,必填,注意和发送方匹配\\
\hline
{\em pwd} & 密码,必填\\
\hline
{\em mailTo} & 接收方,格式如\char`\"{}youmail@sina.com\char`\"{}\\
\hline
{\em subject} & 标题,最好别为空\\
\hline
{\em body} & 正文,必填\\
\hline
{\em bodyhtml} & 正文是否为html格式\\
\hline
{\em youName} & 关联姓名, 选填\\
\hline
\end{DoxyParams}


\subsection{成员函数文档}
\index{Tools::MailHelper@{Tools::MailHelper}!AddMmailCc@{AddMmailCc}}
\index{AddMmailCc@{AddMmailCc}!Tools::MailHelper@{Tools::MailHelper}}
\subsubsection[{AddMmailCc}]{\setlength{\rightskip}{0pt plus 5cm}void Tools.MailHelper.AddMmailCc (
\begin{DoxyParamCaption}
\item[{string}]{ mailCc}
\end{DoxyParamCaption}
)}\label{class_tools_1_1_mail_helper_a5e8481640508d48b3e686453479e5b9f}


添加抄送邮箱, 可多次调用 


\begin{DoxyParams}{参数}
{\em mailCc} & 抄送的email\\
\hline
\end{DoxyParams}
\index{Tools::MailHelper@{Tools::MailHelper}!DoSend@{DoSend}}
\index{DoSend@{DoSend}!Tools::MailHelper@{Tools::MailHelper}}
\subsubsection[{DoSend}]{\setlength{\rightskip}{0pt plus 5cm}void Tools.MailHelper.DoSend (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_tools_1_1_mail_helper_ab5a32a30920dbdd77a34de67bd94836f}


发送邮件 

\begin{DoxyReturn}{返回}
true-\/发送成功
\end{DoxyReturn}


\subsection{属性文档}
\index{Tools::MailHelper@{Tools::MailHelper}!Body@{Body}}
\index{Body@{Body}!Tools::MailHelper@{Tools::MailHelper}}
\subsubsection[{Body}]{\setlength{\rightskip}{0pt plus 5cm}string Tools.MailHelper.Body\hspace{0.3cm}{\ttfamily  [set]}}\label{class_tools_1_1_mail_helper_a9844c82f12aa34df81966875019ef31b}


正文 

\index{Tools::MailHelper@{Tools::MailHelper}!Subject@{Subject}}
\index{Subject@{Subject}!Tools::MailHelper@{Tools::MailHelper}}
\subsubsection[{Subject}]{\setlength{\rightskip}{0pt plus 5cm}string Tools.MailHelper.Subject = $\backslash$w+([-\/+.]$\backslash$w+)$\ast$$\backslash$w\{2,\}@$\backslash$w+([-\/.]$\backslash$w+)$\ast$$\backslash$.$\backslash$w+([-\/.]$\backslash$w+)$\ast$\char`\"{}\hspace{0.3cm}{\ttfamily  [set]}}\label{class_tools_1_1_mail_helper_afff4d7eb0568782b49a75ae6d5814a97}


标题 



该类的文档由以下文件生成：\begin{DoxyCompactItemize}
\item 
D:/Project/1101/Tools/MailHelper.cs\end{DoxyCompactItemize}
